package com.bloveoa.zkkd.confi;

import com.bloveoa.zkkd.aop.IPInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConfg implements WebMvcConfigurer {
    /** 解决跨域问题 **/
    //public void addCorsMappings(CorsRegistry registry) ;
    /** 添加拦截器 **/
   public void addInterceptors(InterceptorRegistry registry){
            registry.addInterceptor(new IPInterceptor());
   };
    /** 这里配置视图解析器 **/
   // void configureViewResolvers(ViewResolverRegistry registry);
    /** 配置内容裁决的一些选项 **/
  //  void configureContentNegotiation(ContentNegotiationConfigurer configurer);
    /** 视图跳转控制器 **/
   // void addViewControllers(ViewControllerRegistry registry);
    /** 静态资源处理 **/
  //  void addResourceHandlers(ResourceHandlerRegistry registry);
    /** 默认静态资源处理器 **/
    //void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer);


}
